<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .container {
            width: 90%;
            height: 600px;
            background: #b0b0b0;
            margin: 0 auto;

            display: grid;  /*将盒子设置为网格盒子*/
            grid-template-columns: 200px auto 200px;
            /*grid-template-rows: 100%;*/
        }
        .left {
            background: #303ab9;
        }
        .middle {
            background: #b92a3d;
        }
        .right {
            background: #3f983f;
        }
    </style>
</head>
<body>
    <h1>两列布局</h1>
    <div class="container">
        <div class="left"></div>
        <div class="middle"></div>
        <div class="right"></div>
    </div>
</body>
</html>